class Loader
	constructor: (@targetUrl = 'http://tartarus.local/api.php') ->
	getImages: =>
		loaded = {}
		$.post @targetUrl, {get:'imgsrc'}, (data, textStatus, jqXHR)->
			console.log data
			loaded.images = data
			true
		, 'html'
		console.log loaded
	getImage: (imageName) =>
		if typeof @Images[imageName] is 'undefined'
			this.getImages()
		@Images[imageName]
